package gl.android.util;

import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.PopupWindow;

public class Tip {
	public static void show(Object message) {
		// Toast.makeText(GlobalVariable.applicationContext, "" + message,
		// Toast.LENGTH_SHORT).show();
	}

	public static void show(int RstringID) {
		// Toast.makeText(GlobalVariable.applicationContext,
		// GlobalVariable.applicationContext.getString(RstringID),
		// Toast.LENGTH_LONG).show();
	}

	public static void show(View hostView, View contentView) {
		PopupWindow pop = new PopupWindow(contentView, hostView.getWidth(),
				LayoutParams.WRAP_CONTENT, true);
		pop.setBackgroundDrawable(new ColorDrawable(0x00000000));
		pop.showAsDropDown(hostView, 0, 0);
		pop.setOutsideTouchable(true);
	}

}
